<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<div id="app">
    {{msg}}
    <hr>
    <h1 v-text="msg2">{{msg1}}</h1>
    <h3 v-html="">{{msg2}}</h3>
    <h3 v-html="msg2">{{msg2}}</h3>



</div>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.7.14/vue.min.js"></script>
<script>
    const vu = new Vue({
            el: "#app",
            data: {
                msg: 'hello vue',
                msg1: 'hello vue',
                msg2: '<div>hello111</div>',

            }
        })
        // console.log(vu.title) //取数据
        // console.log(vu.title = '插值表达式111') //改数据
</script>
//v-text/v-html优先级高于插值表达式 //v-text/v-html写在标签属性里面,插值表达式写在标签内容里面 //v-html能解析标签





</body>

</html>